/**
 * Created by Administrator on 2018/8/2.
 */
$(function () {

        //调用初始化方法
        initFileUpload($$scope, null, null, $CertusFormAjax);

        //初始化
        $$scope.customFile = {};

        $$scope.customFileUpload = function () {
            if(certusValidateNotnullPolyfill()){
                $$scope.contractFile = {projId: proId};
                $$scope.businessQuoteApprove = fileUpload($$scope, function (res) {
                    $$scope.customFile.fileId = res.data;
                    $$scope.customFile.projId = proId;
                    $CertusJsonAjax.ajax("uploadFileCustom", $$scope.customFile, function (res) {
                        if (res.data == "success") {
                            disprojDocumentCusPage();
                        }
                    })
                }, function () {
                    layer.msg("提交文件失败");
                })
            }

        }

    }
)